#ifndef RECBOX_H
#define RECBOX_H

#include <QWidget>
#include <QJsonArray>
namespace Ui {
class recbox;
}

class recbox : public QWidget
{
    Q_OBJECT

public:
    explicit recbox(QWidget *parent = nullptr);
    void InitrecboxUI(QJsonArray array,int row);
    void createrecboxitem();
    ~recbox();

private slots:
    void on_rightbutton_clicked();

    void on_leftbutton_clicked();

private:
    Ui::recbox *ui;
    int col;
    int row;
    int currentindex;
    int count;
    QJsonArray as;
};

#endif // RECBOX_H
